//
//  FirstTabView.swift
//  SwiftUI_App
//
//  Created by qingzhou on 2021/6/3.
//

import SwiftUI

struct FirstTabView: View {
    @EnvironmentObject var stateManager: StateManager
    var body: some View {
        NavigationView{
            VStack {
                Text("我是首页")
                
                NavigationLink(
                    destination: FirstDetailView(),
                    isActive: $stateManager.firstDetailsShow,
                    label: {
                        Text("点我跳转")
                    })
                
            }
        }
        .navigationTitle("首页")
    }
}


